package com.cmcc.qx.ws.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.cmcc.qx.common.entity.Article;
import com.cmcc.qx.common.entity.BackBean;
import com.cmcc.qx.common.service.impl.BaseServiceImpl;
import com.cmcc.qx.ws.dao.BackArtDao;
import com.cmcc.qx.ws.service.BackAtrService;

@Service("BackArtServiceImpl")
public class BackAtrServiceImpl extends BaseServiceImpl implements
		BackAtrService {

	@Resource(name = "backArtDaoImpl")
	private BackArtDao backArtDao;

	public void addArt(Article atr) {
		backArtDao.addArt(atr);
	}

	public List<Article> queryArt(int priNum, int nextNum, BackBean bean) {
		return backArtDao.queryArt(priNum, nextNum, bean);
	}

	public int queryCnt(BackBean bean) {
		return backArtDao.queryCnt(bean);
	}

	public void deleteArt(List<String> ids) {
		backArtDao.deleteArt(ids);
	}

	public void hiddenArt(List<String> ids) {
		backArtDao.hiddenArt(ids);
	}

}
